package com.abhinav.designPatterns.command;

public class LightOnCommand implements Command {
	// Reference to the Light
	Light light;
	
	public LightOnCommand(Light light){
		this.light = light;
	}

	@Override
	public void execute() {
		light.swithOn();		
	}

}
